package pos.interfaces;


import java.sql.Connection;
import java.sql.SQLException;

/**
 * A database interface with methods related to db access
 * @author srikanth ramu
 */
public interface Database extends Storage{
    String MYSQL = "MYSQL";
    String ADMIN = "ADMIN";
    String CLERK = "ADMIN";
    String CUSTOMER = "CUSTOMER";
    
    public Connection getConnection(String userType) throws SQLException, ClassNotFoundException;
    public Connection getConnection(String url, String user, String passwd) throws SQLException, ClassNotFoundException;
}
